<% if !@reply.errors.blank? %>
  _topicView.replyCallback(0, '<%= raw(@msg) %>');
<% else %>
  <% if @reply.upvote? %>
    Turbolinks.visit(location.href);
  <% else %>
    <%= render 'create_callback', reply: @reply %>

     _topicView.replyCallback(1, '<%= j(@msg) %>');
  <% end %>
<% end %>
